<?php

require_once "core/application/models/mrequests/mrequests2.php";

class Mrequests3 extends Mrequests2 {

    private $_query;

    protected function updateRequest($status, $id) {
        /**
         *  обновляем запись
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "UPDATE `personal_requests` SET `status` = '$status' WHERE `id` = '$id'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
